package com.czkt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 主商品对象 erp_spu
 *
 * @author ruoyi
 * @date 2024-05-14
 */
public class ErpSpu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String productAttr;

    /** 基础重量 */
    @Excel(name = "基础重量")
    private Long weight;

    /** 有效期 */
    @Excel(name = "有效期")
    private Long shelfLife;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String productType;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private String productUnit;

    /** 序号 */
    @Excel(name = "序号")
    private String productSerialNo;

    /** 批次号 */
    @Excel(name = "批次号")
    private String productBatchNo;

    /** 多属性 */
    @Excel(name = "多属性")
    private String productProperties;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductAttr(String productAttr)
    {
        this.productAttr = productAttr;
    }

    public String getProductAttr()
    {
        return productAttr;
    }
    public void setWeight(Long weight)
    {
        this.weight = weight;
    }

    public Long getWeight()
    {
        return weight;
    }
    public void setShelfLife(Long shelfLife)
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife()
    {
        return shelfLife;
    }
    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }
    public void setProductUnit(String productUnit)
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit()
    {
        return productUnit;
    }
    public void setProductSerialNo(String productSerialNo)
    {
        this.productSerialNo = productSerialNo;
    }

    public String getProductSerialNo()
    {
        return productSerialNo;
    }
    public void setProductBatchNo(String productBatchNo)
    {
        this.productBatchNo = productBatchNo;
    }

    public String getProductBatchNo()
    {
        return productBatchNo;
    }
    public void setProductProperties(String productProperties)
    {
        this.productProperties = productProperties;
    }

    public String getProductProperties()
    {
        return productProperties;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("productAttr", getProductAttr())
                .append("weight", getWeight())
                .append("shelfLife", getShelfLife())
                .append("productType", getProductType())
                .append("productUnit", getProductUnit())
                .append("productSerialNo", getProductSerialNo())
                .append("productBatchNo", getProductBatchNo())
                .append("productProperties", getProductProperties())
                .toString();
    }


    public static void main(String[] args) {
        String temp = "";
        if(temp==""){
            System.out.println("OK");
        }
    }
}
